import { getGameObjectById } from "../engine";
import { Behaviour } from "../engine/Behaviour";
import { Transform } from "../engine/Transform";
import { number } from "../engine/validators/number";
import { RigidBody } from "./RigidBody";

export class PhotoWalk extends Behaviour {


    onStart(){
        
    }


    onTick(duringTime: number) {

        const Alice=getGameObjectById("Alice")
        const AliceTransform=Alice.getBehaviour(Transform)
        const transform = this.gameObject.getBehaviour(Transform);
        transform.x=AliceTransform.x;

    
    }
}
